PROJECT(karehaparser)
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR}
					${CMAKE_SOURCE_DIR}/libwm/boardparsers)

SET(karehaparser_sources
	karehaparser.cpp)

SET(karehaparser_headers
	karehaparser.h)

QT4_WRAP_CPP(karehaparser_moc ${karehaparser_headers})

ADD_LIBRARY(karehaparser MODULE ${karehaparser_sources} ${karehaparser_moc})
TARGET_LINK_LIBRARIES(karehaparser ${QT_LIBRARIES} ${spelling_libs} wm)
SET_TARGET_PROPERTIES(karehaparser PROPERTIES LIBRARY_OUTPUT_DIRECTORY ..)

INSTALL(TARGETS karehaparser LIBRARY DESTINATION ${LIBDIR}/plugins/boardparsers)

